<script setup>
import { computed, watch } from "vue-demi"
import store from '../../store'



// watch(store.state, (oldVal,newVal) => {
//     console.log(oldVal, newVal)
// })


// store.state.url = "http://localhost"

// console.log(store.state.url)
// const computed = computed(store.state.url, (oldVal, newVal) => {
//     console.log(oldVal, newVal)
// })

function changeView(){
    store.commit('changeView', {
        name: 'show'
    })
}


</script>


<template>
    <router-view>
    <div>
        This is Test Page
    </div>
    <el-button  @click="changeView" type="success">Click to Show Page!</el-button>
    </router-view>
    
</template>

<style>

</style>